<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../hc.js"></script>
<title>isArray(), inArray()</title>
</head>

<body>
<pre>
var a1=[1,'a','b'];
var v0='1';
var v1='A';
var v2='b';
</pre>
<table width="308" border="1" cellspacing="0" cellpadding="0">
	<tr>
		<td width="100">val</td>
		<td width="100">isArray</td>
		<td width="100">inArray</td>
	</tr>
	<tr>
		<td>v0</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>v1</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>v2</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
</table>

<div id="ar"></div>
</body>
<script type="text/javascript">
var a1=[1,'a','b'];
var v0='1';
var v1='A';
var v2='b';
(function ary(){
	$('ar').innerHTML+='v0='+ inArray(v0,a1) +'<br />';
	$('ar').innerHTML+='v0,1='+ inArray(v0,a1,1) +'<br />';
	$('ar').innerHTML+='v1='+ inArray(v1,a1) +'<br />';
	$('ar').innerHTML+='v1,1='+ inArray(v1,a1,1) +'<br />';
	$('ar').innerHTML+='v2='+ inArray(v2,a1) +'<br />';
	$('ar').innerHTML+='v2,1='+ inArray(v2,a1,1) +'<br />';
})()
</script>

</html>
